SET(LIB_SRC uevent.c)
SET(CMAKE_C_FLAGS "-std=c99 -ggdb")

ADD_LIBRARY(uevent_shared SHARED ${LIB_SRC})
ADD_LIBRARY(uevent_static STATIC ${LIB_SRC})

SET_TARGET_PROPERTIES(uevent_shared PROPERTIES OUTPUT_NAME "uevent")
SET_TARGET_PROPERTIES(uevent_shared PROPERTIES VERSION 1.0 SOVERSION 1)
SET_TARGET_PROPERTIES(uevent_static PROPERTIES OUTPUT_NAME "uevent")

INSTALL(TARGETS uevent_shared uevent_static
    LIBRARY DESTINATION lib
    ARCHIVE DESTINATION lib
    )
INSTALL(FILES uevent.h DESTINATION include/)
